package com.yingpai.fitness.adpter.food;

import android.support.annotation.LayoutRes;
import android.text.TextUtils;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yingpai.fitness.R;
import com.yingpai.fitness.dvp_2_0.main.activity.fitness.DieCollocationDetailActivity;
import com.yingpai.fitness.dvp_2_0.main.activity.fitness.DietCollocationActivity;

/**
 * Created by Administrator on 2018/4/25.
 *
 * {@link DieCollocationParentRecyclerAdapter, DietCollocationActivity}
 *
 * {@link DieCollocationDetailActivity}
 */

public  class DieCollocationChildAdapter extends BaseQuickAdapter<String,BaseViewHolder> {


    public DieCollocationChildAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        TextView die_collocation_child_tv=helper.getView(R.id.die_collocation_child_tv);

        die_collocation_child_tv.setText(!TextUtils.isEmpty(item)?item:"");
    }
}